package com.hungry.hfw.dao;

import java.util.ArrayList;
import java.util.List;

public class CustomQuery {
	private String queryName;
	private List<Object> whereList;
	private List<Object> updateList;
	private List<Object> valueList;
	
	
	
	public void setWhereList(List<Object> whereList) {
		this.whereList = whereList;
		System.out.println(whereList);
	}
	public List<Object> getWhereList() {
		return whereList;
	}
	public void setUpdateList(List<Object> updateList) {
		this.updateList = updateList;
	}
	public List<Object> getUpdateList() {
		return updateList;
	}
	public void setValueList(List<Object> valueList) {
		this.valueList = valueList;
	}
	public List<Object> getValueList() {
		valueList = new ArrayList<Object>();
		if(getUpdateList()!=null) {
			System.out.println("inside updateList");
			for(Object o : getUpdateList()) {
				this.valueList.add(o);
			}
		}
		if(getWhereList() != null) {
			System.out.println("inside updateList");

			for(Object o : getWhereList()) {
				System.out.println("inside updateList -" + o);

				this.valueList.add(o);
			}
		}
		
		return valueList;
	}
	public void setQueryName(String queryName) {
		this.queryName = queryName;
	}
	public String getQueryName() {
		return queryName;
	}
	

}
